package cc.higou.service;

import cc.higou.core.dao.BuyerMapper;
import cc.higou.core.pojo.Buyer;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 说明：
 * 登录业务的实现类
 *
 * @author:dongxing
 * @time:--
 */
@Service("buyerService")
public class BuyerServiceImpl implements BuyerService {

    @Autowired
    private BuyerMapper buyerMapper;

    @Override
    public Buyer findByUsername(String username) {
        Buyer buyer = new Buyer();
        buyer.setUsername(username);
        Buyer buyer1 = buyerMapper.selectOne(buyer);

        return buyer1;
    }
}
